home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / sheriffa / frmmain.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-05-31  |  21.0 KB  |  634 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  3. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
  4. Object = "{3DFCEC33-FE34-11D2-96FA-0080C88BFAE7}#1.0#0"; "Sheriff.dll"
  5. Begin VB.Form frmMain 
  6.    AutoRedraw      =   -1  'True
  7.    Caption         =   "SlsDemoVB"
  8.    ClientHeight    =   2556
  9.    ClientLeft      =   132
  10.    ClientTop       =   588
  11.    ClientWidth     =   4848
  12.    LinkTopic       =   "Form1"
  13.    ScaleHeight     =   2556
  14.    ScaleWidth      =   4848
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin ComctlLib.Toolbar tbToolBar 
  17.       Align           =   1  'Align Top
  18.       Height          =   336
  19.       Left            =   0
  20.       TabIndex        =   1
  21.       Top             =   0
  22.       Width           =   4848
  23.       _ExtentX        =   8551
  24.       _ExtentY        =   593
  25.       Appearance      =   1
  26.       ImageList       =   "imlIcons"
  27.       _Version        =   327682
  28.       BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7} 
  29.          NumButtons      =   17
  30.          BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  31.             Key             =   "New"
  32.             Object.ToolTipText     =   "New"
  33.             Object.Tag             =   ""
  34.             ImageIndex      =   1
  35.          EndProperty
  36.          BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  37.             Key             =   "Open"
  38.             Object.ToolTipText     =   "Open"
  39.             Object.Tag             =   ""
  40.             ImageIndex      =   2
  41.          EndProperty
  42.          BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  43.             Key             =   "Save"
  44.             Object.ToolTipText     =   "Save"
  45.             Object.Tag             =   ""
  46.             ImageIndex      =   3
  47.          EndProperty
  48.          BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  49.             Key             =   ""
  50.             Object.Tag             =   ""
  51.             Style           =   3
  52.          EndProperty
  53.          BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  54.             Key             =   "Print"
  55.             Object.ToolTipText     =   "Print"
  56.             Object.Tag             =   ""
  57.             ImageIndex      =   4
  58.          EndProperty
  59.          BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  60.             Key             =   ""
  61.             Object.Tag             =   ""
  62.             Style           =   3
  63.          EndProperty
  64.          BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  65.             Key             =   "Cut"
  66.             Object.ToolTipText     =   "Cut"
  67.             Object.Tag             =   ""
  68.             ImageIndex      =   5
  69.          EndProperty
  70.          BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  71.             Key             =   "Copy"
  72.             Object.ToolTipText     =   "Copy"
  73.             Object.Tag             =   ""
  74.             ImageIndex      =   6
  75.          EndProperty
  76.          BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  77.             Key             =   "Paste"
  78.             Object.ToolTipText     =   "Paste"
  79.             Object.Tag             =   ""
  80.             ImageIndex      =   7
  81.          EndProperty
  82.          BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  83.             Key             =   ""
  84.             Object.Tag             =   ""
  85.             Style           =   3
  86.          EndProperty
  87.          BeginProperty Button11 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  88.             Key             =   "Bold"
  89.             Object.ToolTipText     =   "Bold"
  90.             Object.Tag             =   ""
  91.             ImageIndex      =   8
  92.          EndProperty
  93.          BeginProperty Button12 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  94.             Key             =   "Italic"
  95.             Object.ToolTipText     =   "Italic"
  96.             Object.Tag             =   ""
  97.             ImageIndex      =   9
  98.          EndProperty
  99.          BeginProperty Button13 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  100.             Key             =   "Underline"
  101.             Object.ToolTipText     =   "Underline"
  102.             Object.Tag             =   ""
  103.             ImageIndex      =   10
  104.          EndProperty
  105.          BeginProperty Button14 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  106.             Key             =   ""
  107.             Object.Tag             =   ""
  108.             Style           =   3
  109.          EndProperty
  110.          BeginProperty Button15 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  111.             Key             =   "Left"
  112.             Object.ToolTipText     =   "Left Justify"
  113.             Object.Tag             =   ""
  114.             ImageIndex      =   11
  115.             Style           =   2
  116.             Value           =   -1
  117.          EndProperty
  118.          BeginProperty Button16 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  119.             Key             =   "Center"
  120.             Object.ToolTipText     =   "Center"
  121.             Object.Tag             =   ""
  122.             ImageIndex      =   12
  123.             Style           =   2
  124.             Value           =   -1
  125.          EndProperty
  126.          BeginProperty Button17 {0713F354-850A-101B-AFC0-4210102A8DA7} 
  127.             Key             =   "Right"
  128.             Object.ToolTipText     =   "Right Justify"
  129.             Object.Tag             =   ""
  130.             ImageIndex      =   13
  131.             Style           =   2
  132.             Value           =   -1
  133.          EndProperty
  134.       EndProperty
  135.    End
  136.    Begin SHERIFFLibCtl.Sheriff Sheriff1 
  137.       Height          =   972
  138.       Left            =   3120
  139.       OleObjectBlob   =   "frmMain.frx":0000
  140.       TabIndex        =   2
  141.       Top             =   960
  142.       Visible         =   0   'False
  143.       Width           =   972
  144.    End
  145.    Begin ComctlLib.StatusBar sbStatusBar 
  146.       Align           =   2  'Align Bottom
  147.       Height          =   264
  148.       Left            =   0
  149.       TabIndex        =   0
  150.       Top             =   2292
  151.       Width           =   4848
  152.       _ExtentX        =   8551
  153.       _ExtentY        =   466
  154.       SimpleText      =   ""
  155.       _Version        =   327682
  156.       BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7} 
  157.          NumPanels       =   3
  158.          BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7} 
  159.             AutoSize        =   1
  160.             Object.Width           =   3027
  161.             Text            =   "Status"
  162.             TextSave        =   "Status"
  163.             Key             =   ""
  164.             Object.Tag             =   ""
  165.          EndProperty
  166.          BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7} 
  167.             Style           =   6
  168.             AutoSize        =   2
  169.             TextSave        =   "5/31/99"
  170.             Key             =   ""
  171.             Object.Tag             =   ""
  172.          EndProperty
  173.          BeginProperty Panel3 {0713E89F-850A-101B-AFC0-4210102A8DA7} 
  174.             Style           =   5
  175.             AutoSize        =   2
  176.             TextSave        =   "8:54 PM"
  177.             Key             =   ""
  178.             Object.Tag             =   ""
  179.          EndProperty
  180.       EndProperty
  181.    End
  182.    Begin MSComDlg.CommonDialog dlgCommonDialog 
  183.       Left            =   1392
  184.       Top             =   1080
  185.       _ExtentX        =   677
  186.       _ExtentY        =   677
  187.       _Version        =   393216
  188.    End
  189.    Begin ComctlLib.ImageList imlIcons 
  190.       Left            =   1392
  191.       Top             =   1080
  192.       _ExtentX        =   804
  193.       _ExtentY        =   804
  194.       BackColor       =   -2147483643
  195.       ImageWidth      =   16
  196.       ImageHeight     =   16
  197.       MaskColor       =   12632256
  198.       _Version        =   327682
  199.       BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} 
  200.          NumListImages   =   13
  201.          BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  202.             Picture         =   "frmMain.frx":026A
  203.             Key             =   ""
  204.          EndProperty
  205.          BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  206.             Picture         =   "frmMain.frx":05BC
  207.             Key             =   ""
  208.          EndProperty
  209.          BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  210.             Picture         =   "frmMain.frx":090E
  211.             Key             =   ""
  212.          EndProperty
  213.          BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  214.             Picture         =   "frmMain.frx":0C60
  215.             Key             =   ""
  216.          EndProperty
  217.          BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  218.             Picture         =   "frmMain.frx":0FB2
  219.             Key             =   ""
  220.          EndProperty
  221.          BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  222.             Picture         =   "frmMain.frx":1304
  223.             Key             =   ""
  224.          EndProperty
  225.          BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  226.             Picture         =   "frmMain.frx":1656
  227.             Key             =   ""
  228.          EndProperty
  229.          BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  230.             Picture         =   "frmMain.frx":19A8
  231.             Key             =   ""
  232.          EndProperty
  233.          BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  234.             Picture         =   "frmMain.frx":1CFA
  235.             Key             =   ""
  236.          EndProperty
  237.          BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  238.             Picture         =   "frmMain.frx":204C
  239.             Key             =   ""
  240.          EndProperty
  241.          BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  242.             Picture         =   "frmMain.frx":239E
  243.             Key             =   ""
  244.          EndProperty
  245.          BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  246.             Picture         =   "frmMain.frx":26F0
  247.             Key             =   ""
  248.          EndProperty
  249.          BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} 
  250.             Picture         =   "frmMain.frx":2A42
  251.             Key             =   ""
  252.          EndProperty
  253.       EndProperty
  254.    End
  255.    Begin VB.Menu mnuFile 
  256.       Caption         =   "&File"
  257.       Begin VB.Menu mnuFileNew 
  258.          Caption         =   "&New"
  259.          Shortcut        =   ^N
  260.       End
  261.       Begin VB.Menu mnuFileOpen 
  262.          Caption         =   "&Open"
  263.          Shortcut        =   ^O
  264.       End
  265.       Begin VB.Menu mnuFileClose 
  266.          Caption         =   "&Close"
  267.       End
  268.       Begin VB.Menu mnuFileBar1 
  269.          Caption         =   "-"
  270.       End
  271.       Begin VB.Menu mnuFileSave 
  272.          Caption         =   "&Save"
  273.          Shortcut        =   ^S
  274.       End
  275.       Begin VB.Menu mnuFileSaveAs 
  276.          Caption         =   "Save &As..."
  277.       End
  278.       Begin VB.Menu mnuFileSaveAll 
  279.          Caption         =   "Save A&ll"
  280.       End
  281.       Begin VB.Menu mnuFileBar2 
  282.          Caption         =   "-"
  283.       End
  284.       Begin VB.Menu mnuFileProperties 
  285.          Caption         =   "Propert&ies"
  286.       End
  287.       Begin VB.Menu mnuFileBar3 
  288.          Caption         =   "-"
  289.       End
  290.       Begin VB.Menu mnuFilePageSetup 
  291.          Caption         =   "Page Set&up..."
  292.       End
  293.       Begin VB.Menu mnuFilePrintPreview 
  294.          Caption         =   "Print Pre&view"
  295.       End
  296.       Begin VB.Menu mnuFilePrint 
  297.          Caption         =   "&Print..."
  298.          Shortcut        =   ^P
  299.       End
  300.       Begin VB.Menu mnuFileBar4 
  301.          Caption         =   "-"
  302.       End
  303.       Begin VB.Menu mnuFileSend 
  304.          Caption         =   "Sen&d..."
  305.       End
  306.       Begin VB.Menu mnuFileBar5 
  307.          Caption         =   "-"
  308.       End
  309.       Begin VB.Menu mnuFileMRU 
  310.          Caption         =   ""
  311.          Index           =   0
  312.          Visible         =   0   'False
  313.       End
  314.       Begin VB.Menu mnuFileMRU 
  315.          Caption         =   ""
  316.          Index           =   1
  317.          Visible         =   0   'False
  318.       End
  319.       Begin VB.Menu mnuFileMRU 
  320.          Caption         =   ""
  321.          Index           =   2
  322.          Visible         =   0   'False
  323.       End
  324.       Begin VB.Menu mnuFileMRU 
  325.          Caption         =   ""
  326.          Index           =   3
  327.          Visible         =   0   'False
  328.       End
  329.       Begin VB.Menu mnuFileBar6 
  330.          Caption         =   "-"
  331.          Visible         =   0   'False
  332.       End
  333.       Begin VB.Menu mnuFileExit 
  334.          Caption         =   "E&xit"
  335.       End
  336.    End
  337.    Begin VB.Menu mnuEdit 
  338.       Caption         =   "&Edit"
  339.       Begin VB.Menu mnuEditUndo 
  340.          Caption         =   "&Undo"
  341.          Shortcut        =   ^Z
  342.       End
  343.       Begin VB.Menu mnuEditBar1 
  344.          Caption         =   "-"
  345.       End
  346.       Begin VB.Menu mnuEditCut 
  347.          Caption         =   "Cu&t"
  348.          Shortcut        =   ^X
  349.       End
  350.       Begin VB.Menu mnuEditCopy 
  351.          Caption         =   "&Copy"
  352.          Shortcut        =   ^C
  353.       End
  354.       Begin VB.Menu mnuEditPaste 
  355.          Caption         =   "&Paste"
  356.          Shortcut        =   ^V
  357.       End
  358.       Begin VB.Menu mnuEditPasteSpecial 
  359.          Caption         =   "Paste &Special..."
  360.       End
  361.    End
  362.    Begin VB.Menu mnuView 
  363.       Caption         =   "&View"
  364.       Begin VB.Menu mnuViewToolbar 
  365.          Caption         =   "&Toolbar"
  366.          Checked         =   -1  'True
  367.       End
  368.       Begin VB.Menu mnuViewStatusBar 
  369.          Caption         =   "Status &Bar"
  370.          Checked         =   -1  'True
  371.       End
  372.       Begin VB.Menu mnuViewBar2 
  373.          Caption         =   "-"
  374.       End
  375.       Begin VB.Menu mnuViewRefresh 
  376.          Caption         =   "&Refresh"
  377.       End
  378.       Begin VB.Menu mnuViewOptions 
  379.          Caption         =   "&Options..."
  380.       End
  381.    End
  382.    Begin VB.Menu mnuHelp 
  383.       Caption         =   "&Help"
  384.       Begin VB.Menu mnuHelpContents 
  385.          Caption         =   "&Contents"
  386.       End
  387.       Begin VB.Menu mnuHelpSearch 
  388.          Caption         =   "&Search For Help On..."
  389.       End
  390.       Begin VB.Menu mnuHelpBar1 
  391.          Caption         =   "-"
  392.       End
  393.       Begin VB.Menu mnuHelpAbout 
  394.          Caption         =   "&About SlsDemoVB..."
  395.       End
  396.    End
  397. Attribute VB_Name = "frmMain"
  398. Attribute VB_GlobalNameSpace = False
  399. Attribute VB_Creatable = False
  400. Attribute VB_PredeclaredId = True
  401. Attribute VB_Exposed = False
  402. Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
  403. Private Sub mnuHelpAbout_Click()
  404.     frmAbout.Show vbModal, Me
  405. End Sub
  406. Private Sub mnuViewOptions_Click()
  407.     'To Do
  408.     MsgBox "Options Dialog Code goes here!"
  409. End Sub
  410. Private Sub mnuViewStatusBar_Click()
  411.     If mnuViewStatusBar.Checked Then
  412.         sbStatusBar.Visible = False
  413.         mnuViewStatusBar.Checked = False
  414.     Else
  415.         sbStatusBar.Visible = True
  416.         mnuViewStatusBar.Checked = True
  417.     End If
  418. End Sub
  419. Private Sub mnuViewToolbar_Click()
  420.     If mnuViewToolbar.Checked Then
  421.         tbToolBar.Visible = False
  422.         mnuViewToolbar.Checked = False
  423.     Else
  424.         tbToolBar.Visible = True
  425.         mnuViewToolbar.Checked = True
  426.     End If
  427. End Sub
  428. Private Sub Sheriff1_OnChallenge(ByVal ChallengingData As String, ByRef ChallengedData As String)
  429.     'we have to support challenge
  430.     Dim Challenger As Object
  431.     Set Challenger = CreateObject("Sheriff.Challenger")
  432.     'Initialize the Challenger with secret codes
  433.     Challenger.Secret1 = "0763198532076621"
  434.     Challenger.Secret2 = "1854207641987532"
  435.     Challenger.Secret3 = "2482159326044927"
  436.     Challenger.Secret4 = "3739062895179618"
  437.     hr = Challenger.CreateChallenge(ChallengingData, ChallengedData)
  438. End Sub
  439. Private Sub Sheriff1_OnLicenceExpired()
  440.     MsgBox "Licence Expired"
  441.     'take appropriate actions
  442.     '...
  443. End Sub
  444. Private Sub Sheriff1_OnProductNotAuthorized()
  445.     MsgBox "Product is not authorized"
  446.     'take appropriate actions
  447.     '...
  448. End Sub
  449. Private Sub Sheriff1_OnStart()
  450.     MsgBox "OnStart"
  451.     hr = Sheriff1.QueryLicenceInfo()
  452.     'take appropriate actions
  453.     '...
  454. End Sub
  455. Private Sub Sheriff1_OnTooManyUsers()
  456.     MsgBox "There ate too many users"
  457.     'take appropriate actions
  458.     '...
  459. End Sub
  460. Private Sub Sheriff1_OnTrial()
  461.     MsgBox "You're now entering evaluation time"
  462.     'take appropriate actions
  463.     '...
  464. End Sub
  465. Private Sub tbToolBar_ButtonClick(ByVal Button As ComctlLib.Button)
  466.     Select Case Button.Key
  467.         Case "New"
  468.             mnuFileNew_Click
  469.         Case "New"
  470.             mnuFileNew_Click
  471.         Case "Open"
  472.             mnuFileOpen_Click
  473.         Case "Save"
  474.             mnuFileSave_Click
  475.         Case "Print"
  476.             mnuFilePrint_Click
  477.         Case "Cut"
  478.             mnuEditCut_Click
  479.         Case "Copy"
  480.             mnuEditCopy_Click
  481.         Case "Paste"
  482.             mnuEditPaste_Click
  483.         Case "Bold"
  484.             'To Do
  485.             MsgBox "Bold Code goes here!"
  486.         Case "Italic"
  487.             'To Do
  488.             MsgBox "Italic Code goes here!"
  489.         Case "Underline"
  490.             'To Do
  491.             MsgBox "Underline Code goes here!"
  492.         Case "Left"
  493.             'To Do
  494.             MsgBox "Left Code goes here!"
  495.         Case "Center"
  496.             'To Do
  497.             MsgBox "Center Code goes here!"
  498.         Case "Right"
  499.             'To Do
  500.             MsgBox "Right Code goes here!"
  501.     End Select
  502. End Sub
  503. Private Sub mnuHelpContents_Click()
  504.     Dim nRet As Integer
  505.     'if there is no helpfile for this project display a message to the user
  506.     'you can set the HelpFile for your application in the
  507.     'Project Properties dialog
  508.     If Len(App.HelpFile) = 0 Then
  509.         MsgBox "Unable to display Help Contents. There is no Help associated with this project.", vbInformation, Me.Caption
  510.     Else
  511.         On Error Resume Next
  512.         nRet = OSWinHelp(Me.hwnd, App.HelpFile, 3, 0)
  513.         If Err Then
  514.             MsgBox Err.Description
  515.         End If
  516.     End If
  517. End Sub
  518. Private Sub mnuHelpSearch_Click()
  519.     Dim nRet As Integer
  520.     'if there is no helpfile for this project display a message to the user
  521.     'you can set the HelpFile for your application in the
  522.     'Project Properties dialog
  523.     If Len(App.HelpFile) = 0 Then
  524.         MsgBox "Unable to display Help Contents. There is no Help associated with this project.", vbInformation, Me.Caption
  525.     Else
  526.         On Error Resume Next
  527.         nRet = OSWinHelp(Me.hwnd, App.HelpFile, 261, 0)
  528.         If Err Then
  529.             MsgBox Err.Description
  530.         End If
  531.     End If
  532. End Sub
  533. Private Sub mnuViewRefresh_Click()
  534.     'To Do
  535.     MsgBox "Refresh Code goes here!"
  536. End Sub
  537. Private Sub mnuEditCopy_Click()
  538.     'To Do
  539.     MsgBox "Copy Code goes here!"
  540. End Sub
  541. Private Sub mnuEditCut_Click()
  542.     'To Do
  543.     MsgBox "Cut Code goes here!"
  544. End Sub
  545. Private Sub mnuEditPaste_Click()
  546.     'To Do
  547.     MsgBox "Paste Code goes here!"
  548. End Sub
  549. Private Sub mnuEditPasteSpecial_Click()
  550.     'To Do
  551.     MsgBox "Paste Special Code goes here!"
  552. End Sub
  553. Private Sub mnuEditUndo_Click()
  554.     'To Do
  555.     MsgBox "Undo Code goes here!"
  556. End Sub
  557. Private Sub mnuFileOpen_Click()
  558.     Dim sFile As String
  559.     With dlgCommonDialog
  560.         'To Do
  561.         'set the flags and attributes of the
  562.         'common dialog control
  563.         .Filter = "All Files (*.*)|*.*"
  564.         .ShowOpen
  565.         If Len(.FileName) = 0 Then
  566.             Exit Sub
  567.         End If
  568.         sFile = .FileName
  569.     End With
  570.     'To Do
  571.     'process the opened file
  572. End Sub
  573. Private Sub mnuFileClose_Click()
  574.     'To Do
  575.     MsgBox "Close Code goes here!"
  576. End Sub
  577. Private Sub mnuFileSave_Click()
  578.     'To Do
  579.     MsgBox "Save Code goes here!"
  580. End Sub
  581. Private Sub mnuFileSaveAs_Click()
  582.     'To Do
  583.     'Setup the common dialog control
  584.     'prior to calling ShowSave
  585.     dlgCommonDialog.ShowSave
  586. End Sub
  587. Private Sub mnuFileSaveAll_Click()
  588.     'To Do
  589.     MsgBox "Save All Code goes here!"
  590. End Sub
  591. Private Sub mnuFileProperties_Click()
  592.     'To Do
  593.     MsgBox "Properties Code goes here!"
  594. End Sub
  595. Private Sub mnuFilePageSetup_Click()
  596.     dlgCommonDialog.ShowPrinter
  597. End Sub
  598. Private Sub mnuFilePrintPreview_Click()
  599.     'To Do
  600.     MsgBox "Print Preview Code goes here!"
  601. End Sub
  602. Private Sub mnuFilePrint_Click()
  603.     'To Do
  604.     MsgBox "Print Code goes here!"
  605. End Sub
  606. Private Sub mnuFileSend_Click()
  607.     'To Do
  608.     MsgBox "Send Code goes here!"
  609. End Sub
  610. Private Sub mnuFileMRU_Click(Index As Integer)
  611.     'To Do
  612.     MsgBox "MRU Code goes here!"
  613. End Sub
  614. Private Sub mnuFileExit_Click()
  615.     'unload the form
  616.     Unload Me
  617. End Sub
  618. Private Sub mnuFileNew_Click()
  619.     'To Do
  620.     MsgBox "New File Code goes here!"
  621. End Sub
  622. Private Sub Form_Load()
  623.     Sheriff1.CheckLicence
  624. End Sub
  625. Private Sub Sheriff1_OnError(ByVal lErrorCode As Long, ByVal bstrErrorMsg As String)
  626.         MsgBox bstrErrorMsg
  627. End Sub
  628. Private Sub Sheriff1_OnHeartBeat()
  629.     MsgBox "OnHeartbeat"
  630. End Sub
  631. Private Sub Sheriff1_OnProductNotLicensed()
  632.     MsgBox "OnProductNotLicensed"
  633. End Sub
  634.